package com.cndw.kungfu.model.pet.domain;

import com.cndw.kungfu.ext.StringProcesser;

/**
 * 兽魂实体类
 * 
 * @author fantadust [9677889@qq.com]
 * @date 2012-6-1 下午2:13:48
 */
public class PetSoul {
	/**
	 * 编号
	 */
	private int id;
	/**
	 * 类别
	 */
	private int type;
	/**
	 * 顏色
	 */
	private int color;
	/**
	 * 等級
	 */
	private int level;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 加成
	 */
	private String adds;
	/**
	 * 属性加成
	 */
	private int[] addV;
	/**
	 * 經驗值
	 */
	private int engulfExp;
	/**
	 * 升级需要的经验
	 */
	private int upgradeExp;
	/**
	 * 可以賣出的價格
	 */
	private int asset;
	/**
	 * 需要多少精髓来兑换
	 */
	private int cost;
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAdds() {
		return adds;
	}

	public void setAdds(String adds) {
		this.adds = adds;
		try {
			addV = StringProcesser.toIntArray(adds);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public int[] getAddV() {
		return addV;
	}

	public void setAddV(int[] addV) {
		this.addV = addV;
	}

	public int getEngulfExp() {
		return engulfExp;
	}

	public void setEngulfExp(int engulfExp) {
		this.engulfExp = engulfExp;
	}

	public int getAsset() {
		return asset;
	}

	public void setAsset(int asset) {
		this.asset = asset;
	}

	public int getUpgradeExp() {
		return upgradeExp;
	}

	public void setUpgradeExp(int upgradeExp) {
		this.upgradeExp = upgradeExp;
	}

	public int getCost() {
		return cost;
	}

	public void setCost(int cost) {
		this.cost = cost;
	}

}
